﻿using Super.Admin.Entities;

namespace Super.Admin.IServices
{
    /// <summary>
    /// 用户常用菜单设置服务接口类
    /// </summary>
    public interface IUserCommonPermissionService : IBaseService
    {
        /// <summary>
        /// 查询用户常用菜单
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <returns>常用菜单实体集合</returns>
        IReadOnlyCollection<UserCommonPermissionEntity> GetUserCommonPermissions(int userId);
        /// <summary>
        /// 修改用户常用菜单
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="permissionIds"></param>
        void UpdateUserCommonPermission(int userId, IEnumerable<int> permissionIds);
    }
}
